package com.hc.dao;

import com.hc.entity.Auth;
import java.util.List;

public interface AuthDao {

    int insertAuth(Auth auth);

    int insertAuthSelective(Auth auth);

	int batchInsertAuth(List<Auth> authList);

    int deleteAuthById(Integer id);

	int deleteAuthByCondition(Auth auth);

	int batchDeleteAuthByIdList(List<Integer> idList);

    int updateAuth(Auth auth);

    int updateAuthSelective(Auth auth);

    long selectCount();
    
    long selectCountByCondition(Auth auth);

    Auth selectAuthById(Integer id);

    List<Auth> selectAllAuth();

	List<Auth> selectAuthByCondition(Auth auth);

    //////////////////////////// 外键相关 /////////////////////////////////////
    List<Auth> selectAuthByParent(Integer parent);

    /**
     * 查找指定角色所具有的权限
     * @param parent
     * @return
     */
    List<Auth> selectAuthByRoleId(Integer parent);
}